import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department";
import Employee from "./views/org/Employee";
import SystemDictionaryType from "./views/system/SystemDictionaryType";
import SystemDictionaryDetail from "./views/system/SystemDictionaryDetail";
import Log from "./views/system/Log";
import ShopRegister from "./views/ShopRegister";
import Shop from "./views/org/Shop";
import RegisterAgain from "./views/RegisterAgain";
import Menu from "./views/system/Menu";
import Permission from "./views/system/Permission";
import Role from "./views/system/Role";
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/registerAgain',
        component: RegisterAgain,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    // { path: '/main', component: Main },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '部门管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/main', component: Main, name: '主页', hidden: true },
    //         { path: '/dept', component: Department, name: '部门管理' },
    //         { path: '/emp', component: Employee, name: '员工管理' },
    //         { path: '/shop', component: Shop, name: '店铺管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '系统管理',
    //     iconCls: 'fa fa-id-card-o',
    //     children: [
    //         { path: '/sdt', component: SystemDictionaryType, name: '数据字典类型管理' },
    //         { path: '/sdd', component: SystemDictionaryDetail, name: '数据字典明细管理' },
    //         { path: '/log', component: Log, name: '系统日志' },
    //         { path: '/menu', component: Menu, name: '权限菜单管理' },
    //         { path: '/permission', component: Permission, name: '按钮菜单管理' },
    //         { path: '/role', component: Role, name: '角色管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '',
    //     iconCls: 'fa fa-address-card',
    //     leaf: true,//只有一个节点
    //     children: [
    //         { path: '/page6', component: Page6, name: '导航三' }
    //     ]
    // },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;